package service;

import org.apache.ibatis.session.SqlSession;

import dao.UserDao;
import entity.User;
import util.SqlSessionFactoryUtil;

public class UserService {
	SqlSession sqlSession = null;
	public User userLogin(String uid,String pwd){
		sqlSession = SqlSessionFactoryUtil.getSqlSession();
		UserDao userDao = sqlSession.getMapper(UserDao.class);
		User user = userDao.login(uid, pwd);
		return user;
	}
}
